#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#define My_offsetof(s,m) ((size_t)&(((s*)0)->m))
struct A
{
	char c;
	int count;
};
int main()
{
	//printf("%d\n", offsetof(struct A, c));
	printf("%d\n", My_offsetof(struct A, count));
	//printf("%d\n", ((size_t) & ((struct A*)0)->count));

	return 0;
}